package com.wtwd.device.service;


import com.wtwd.device.model.dto.GetDialByWatchIdAndGroupIdDto;
import com.wtwd.device.model.dto.GetGroupInfoByWatchIdDto;
import com.wtwd.device.model.entity.DialManagement;
import com.wtwd.device.model.vo.GroupInfoVo;
import com.wtwd.device.model.vo.ResultVO;
import com.wtwd.device.service.impl.ManagementServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author mjy
 * 此处service用于远程调用管理平台服务
 * @date 2023/01/07
 * @description
 */
@FeignClient(value = "management-platform", fallback = ManagementServiceImpl.class)
public interface ManagementService {

    /**
     * 获取该用户所有分组,并获取按规则获取分组里面的图片
     * @param getGroupInfoByWatchIdDto
     * @return
     */
    @PostMapping("/group-info/getGroupInfoByWatchId")
    ResultVO<List<GroupInfoVo>> getGroupInfoByWatchId(@RequestBody GetGroupInfoByWatchIdDto getGroupInfoByWatchIdDto);

    /**
     * 根据表盘id和分组id,获取表盘
     *
     * @param dao
     * @return
     */
    @PostMapping("/group-info/getDialByWatchIdAndGroupIdPage")
    ResultVO<List<DialManagement>> getDialByWatchIdAndGroupIdPage(@RequestBody GetDialByWatchIdAndGroupIdDto dao);
}
